import { request } from './request'

//添加博客留言
export function LeaveItem(data) {
    return request({
        url: '/blog/comment/add',
        method: 'post',
        data
    })
}
//获取博客留言
export function gainItem(id) {
    return request({
        url: `/blog/comment/${id}`,
        method: 'get'
    })
}

//获取留言板数据
export function Messages(page, size) {
    return request({
        url: `/blog/board/list/${page}/${size}`
    })
}

//添加留言板留言
export function LeaveItems(data) {
    return request({
        url: '/blog/board/add',
        method: 'post',
        data
    })
}